package cate.common.table.limittimegift;

import cate.common.table.ERow;
import cate.common.table.XSSFRowWrap;
import easy.java.dev.note.NoteField;

public class LimitDayGiftRow extends ERow {

    @NoteField(value = "奖励")
    public String rewardStr;

    @NoteField(value = "价格")
    public int rmb;

    @NoteField(value = "充值项ID")
    public int payItemId;

    @NoteField(value = "开服天数起始")
    public int startDay;

    @NoteField(value = "顺序")
    public int order;

    @NoteField(value = "功能开启等级")
    public int level;

    @Override
    public void parse(XSSFRowWrap xr) {
        this.id = xr.getInteger("ID", -1);
        this.rewardStr = xr.getString("奖励");
        this.rmb = xr.getInteger("价格", 0);
        this.startDay = xr.getInteger("开服时间", 0);
        this.payItemId = xr.getInteger("充值项ID", -1);
        this.order = xr.getInteger("顺序", -1);
        this.level = xr.getInteger("level", 25);
    }
}
